
public class work7 {
	public static void main(String[] args) {
		int olds[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 3, 2, 4, 5, 6, 7, 4, 45, 2, 1, 1, 4, 6, 3 };
		int news[] = new int[11];
		news[0] = olds[0];
		int k = 0;
		for (int i = 1; i < 24; i++) {
			int m = 0;
			for (int j = 0; j < i; j++) {
				if (olds[i] == olds[j]) {
					m++;
				}
			}
			if (m == 0) {
				k++;
				news[k] = olds[i];
			}
		}
		for (int h = 0; h < news.length; h++) {
			System.out.println("news[" + h + "]=" + news[h]);
		}
	}
}
